/**
 * Sample React Native App
 * https://github.com/facebook/react-native
 * @flow
 */

import React, { Component } from 'react';
import {
  Platform,
  StyleSheet,
  Text,
  View,
  Image
} from 'react-native';

import { TabView } from "teaset";

var View1 = require('./ViewComponents/View1');
var View2 = require('./ViewComponents/View2');
var View3 = require('./ViewComponents/View3');

export default class App extends Component {
  constructor(props) {
    super(props);
    this.state = {
      custom:true
    }
  }
  
  render() {
    const custom = this.state.custom;
    return (
      <TabView style={{ flex: 1 }} custom='true' type='projector'>
        <TabView.Sheet
          title='Home'
          icon={require('./appIcons/home.png')}
          activeIcon={require('./appIcons/home_active.png')}
        >
          <View3 />
        </TabView.Sheet>
        <TabView.Sheet
          title='Store'
          icon={require('./appIcons/store.png')}
          activeIcon={require('./appIcons/store_active.png')}
        >
          <View2 />
        </TabView.Sheet>
        <TabView.Sheet
          title='Me'
          icon={require('./appIcons/me.png')}
          activeIcon={require('./appIcons/me_active.png')}
          badge={1}
        >
          <View1 />
        </TabView.Sheet>
      </TabView>
    );
  }
}

const styles = StyleSheet.create({
  container: {
    flex: 1,
    justifyContent: 'center',
    alignItems: 'center',
    backgroundColor: '#F5FCFF',
  },
});
